/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/itframe">itframe</a> All rights reserved.
 */
package com.rise.itframe.modules.inv.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.rise.itframe.common.persistence.Page;
import com.rise.itframe.common.service.CrudService;
import com.rise.itframe.modules.inv.dao.InvConfDao;
import com.rise.itframe.modules.inv.entity.InvConf;

/**
 * 发票白名单配置Service
 * @author 发票白名单配置
 * @version 2017-12-31
 */
@Service
@Transactional(readOnly = true)
public class InvConfService extends CrudService<InvConfDao, InvConf> {
    @Autowired
    private InvConfDao invConfDao;

    @Override
    public InvConf get(String id) {
        return super.get(id);
    }

    /**
     * 根据白名单名称查询
     * @param invDeptName
     * @return
     */
    public InvConf getByInvDeptName(String invDeptName) {
        return invConfDao.getByInvDeptName(invDeptName);
    }

    @Override
    public List<InvConf> findList(InvConf invConf) {
        return super.findList(invConf);
    }

    @Override
    public Page<InvConf> findPage(Page<InvConf> page, InvConf invConf) {
        return super.findPage(page, invConf);
    }

    @Override
    @Transactional(readOnly = false)
    public void save(InvConf invConf) {
        super.save(invConf);
    }

    @Override
    @Transactional(readOnly = false)
    public void delete(InvConf invConf) {
        super.delete(invConf);
    }

}